<div class="management_container ml" id="management_container">
    <div class="page-header">
        <h1 class="page-title">任务管理</h1>
        <div class="btns">
            <button type="button" id="add_btn" data-toggle="modal" class="btn btn-text editOrAdd" form_type="info" data-type="page" onClick="managementView.fn.add(this)">
                添加
            </button>
        </div>
    </div>
    <div class="container-fluid page-content s-height">
        <div class="widget ml">
            <div class="row height-p-100">
                <div class="col-md-12 height-p-100">
                    <div class="row">
                        <form action="" id="bank_branch_form">
                            <!-- <input type="hidden" name="id"> -->
                            <div class="col-md-3 form-group">
                                <div class="row">
                                    <label class="col-md-4 form-group-label">
                                        <div>任务名称</div>
                                    </label>
                                    <div class="col-md-8">
                                        <input class="form-control jobName-search" name="jobName" type="text" value="">

                                    </div>
                                </div>
                            </div>
                            <div class="col-md-3 form-group">
                                <div class="row">
                                    <label class="col-md-4 form-group-label">
                                        <div>执行频率</div>
                                    </label>
                                    <div class="col-md-8">
                                        <select class="form-control" data-plugin="selectpicker" name="repeatFlag">
                                            <option value="">全部</option>
                                            <option value="0">单次执行</option>
                                            <option value="1">循环执行</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-3 form-group text-right">
                                <div class="row">
                                    <div class="col-md-12">
                                        <button type="button" class="btn btn-primary" id="search_btn">搜索</button>
                                        <button type="reset" class="btn btn-default" id="reset-btn">重置</button>

                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="s-height bank-content">
                        <div class="ml wd-table-container padding-bottom-0">
                            <table class="table table-striped table-bordered table-hover table-condensed" id="management_list" cellspacing="0" width="100%">
                                <thead>
                                    <tr>
                                        <th width="60px" data-field="jobName">任务名称</th>
                                        <th width="170px" data-field="dsFromName">数据源</th>
                                        <th width="170px" data-field="dsToName">目标源</th>
                                        <th data-type="operation" data-render="managementView.fn.render.files">包含文件数</th>
                                        <th data-field="repeat">执行频率</th>
                                        <th width="120px" data-field="extTime">执行时间</th>
                                        <th width="160px" data-field="validTime">有效期</th>
                                        <th data-field="nextStartTime">下次开始时间</th>
                                        <th data-type="operation" data-render="managementView.fn.render.operation">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="./../../static/modules/management/management.js"></script>
</div>
<div id="management_add_container">
    <form class="form-horizontal" id="management_add_form" autocomplete="off" onkeydown="if(event.keyCode==13)return false;">
        <div class="form-group">
            <div class="col-sm-12">
                <label class="control-label">
                    <span class="star">*</span>任务名称：</label>
                <!-- <div class="col-sm-6"> -->
                <input class="form-control jobName" name="jobName" data-v="notempty,len:0-30" data-m="任务名称不能为空,最多只能输入30个字符" type="text">
                <!-- </div> -->
            </div>
        </div>
        <div class="main-item">
            <div class="row">
                <p class="col-sm-12 add-title">基本设置</p>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">
                    <span class="star">*</span>选择数据源：</label>
                <div class="col-sm-4">
                    <select class="selectpicker dsFromId" data-plugin="selectpicker" name="dsFromId" data-v="notempty" data-m="数据源名称不能为空" data-live-search="true">
                        <option value="">请选择数据源</option>
                    </select>
                </div>
                <label class="col-sm-1 control-label word">至</label>
                <div class="col-sm-4">
                    <select class="selectpicker dsToId" name="dsToId" data-plugin="selectpicker" data-v="notempty" data-m="数据源名称不能为空" data-live-search="true">
                        <option value="">请选择数据源</option>
                    </select>
                </div>
            </div>
            <div class="form-group" id="transferBox">
            </div>
        </div>
        <div class="main-item">
            <div class="row">
                <p class="col-sm-12 add-title">抽取周期设置</p>
            </div>
            <div class="form-group">
                <label class="col-sm-1"></label>
                <label class="col-sm-2">
                    <span class="star">*</span>执行频率：</label>
                <div class="col-sm-9">
                    <div class="radio-custom radio-primary col-sm-2">
                        <input type="radio" name="repeatFlag" onchange="managementView.fn.choose()" value="0">
                        <label for="repeatFlag" >单次执行</label>
                    </div>
                    <!-- <label class="col-sm-2">
                        <input class="rad" type="radio" onchange="managementView.fn.choose()" name="repeatFlag" value="0">单次执行</label> -->
                    <div class="input-append date form_datetime col-sm-5" id="datetimepicker">
                        <input class="form-control singleTime" value="" name="singleTime" size="16" type="text" readonly disabled="true" data-v="notempty"
                            data-m="请选择执行时间">
                        <span class="add-on">
                            <i class="icon-th"></i>
                        </span>
                        <i class="icon wb-calendar"></i>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3"></label>
                <div class="col-sm-9">
                    <div class="radio-custom radio-primary col-sm-2">
                        <input type="radio" name="repeatFlag" onchange="managementView.fn.choose()" value="1">
                        <label for="repeatFlag" >循环执行</label>
                    </div>
                    <label class="col-sm-9 form-group-loopTime">每天
                        <select class="selectpickerToday" name="loopTime" data-v="notempty" data-m="请选择执行时间">
                            <option value="">请选择</option>
                            <option value="00:00">00:00</option>
                            <option value="01:00">01:00</option>
                            <option value="02:00">02:00</option>
                            <option value="03:00">03:00</option>
                            <option value="04:00">04:00</option>
                            <option value="05:00">05:00</option>
                            <option value="06:00">06:00</option>
                            <option value="07:00">07:00</option>
                            <option value="08:00">08:00</option>
                            <option value="09:00">09:00</option>
                            <option value="10:00">10:00</option>
                            <option value="11:00">11:00</option>
                            <option value="12:00">12:00</option>
                            <option value="13:00">13:00</option>
                            <option value="14:00">14:00</option>
                            <option value="15:00">15:00</option>
                            <option value="16:00">16:00</option>
                            <option value="17:00">17:00</option>
                            <option value="18:00">18:00</option>
                            <option value="19:00">19:00</option>
                            <option value="20:00">20:00</option>
                            <option value="21:00">21:00</option>
                            <option value="22:00">22:00</option>
                            <option value="23:00">23:00</option>
                            <option value="24:00">24:00</option>
                        </select>
                        <label class="">执行</label>
                    </label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1"></label>
                <label class="col-sm-2">
                    <span class="star">*</span>有效日期：</label>
                <div class="col-sm-8">
                    <label class="col-sm-4 input-append date fl" id="datetimeStart">
                        <input name="validStartDate" type="text" class="form-control starttime" readonly data-v="notempty" data-m="请选择开始时间" disabled>
                        <span class="add-on">
                            <i class="icon-th"></i>
                        </span>
                    </label>
                    <span class="col-sm-1">至</span>
                    <label class="col-sm-4 input-append date fl" id="datetimeEnd">
                        <input name="validEndDate" type="text" class="form-control endtime" readonly data-v="notempty" data-m="请选择结束时间" disabled>
                        <span class="add-on">
                            <i class="icon-th"></i>
                        </span>
                    </label>
                </div>
            </div>
        </div>
        <div class="text-center footer">
            <button type="button" class="btn btn-primary enter_btn save_btn" type="add" onclick="managementView.fn.manageSubmit()">提交</button>
        </div>
    </form>

</div>
<div id="files_details">
    <div class="row">
        <label class="col-sm-3 control-label">任务名称：</label>
        <div class="col-sm-9 title_message">

        </div>
    </div>
    <div class="row">
        <label class="col-sm-3 control-label">映射文件：</label>
        <div class="col-sm-9">
            <ul class="mapFileName content_message_list">

            </ul>
        </div>
    </div>
</div>